﻿using System;
using System.Windows.Forms;
using ebc.componentbinder;

namespace csvm.board {
    static class Program {
        /// <summary>
        /// Der Haupteinstiegspunkt für die Anwendung.
        /// </summary>
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var portal = new portal.UI();
            var fileAdapter = new fileadapter.FileAdapter();
            var recordBuilder = new recordbuilder.RecordBuilder();
            var pageBuilder = new pagebuilder.PageBuilder();

            new ComponentBinder().Bind(portal, fileAdapter, recordBuilder, pageBuilder);

            //portal.OnReadFile += fileAdapter.ProcessReadFile;
            //fileAdapter.OnProgressChanged += portal.ProcessProgressChanged;
            //fileAdapter.OnBuildRecords += recordBuilder.ProcessBuildRecords;
            //recordBuilder.OnGetHeader += portal.ProcessGetHeader;
            //recordBuilder.OnBuildPages += pageBuilder.ProcessBuildPages;
            //pageBuilder.OnLoadPages += portal.ProcessLoadPages;

            Application.Run( portal);
        }
    }
}
